import request from '@/utils/http'


//首页人工服务列表
export const workorderApi = (data) => request.post('volunteer/workorder',data);
//订单详情
export const workorderOrderDetailApi = (data) => request.post('volunteer/orderDetail',data);
//活动
export const tabActivity = (data) => request.post('volunteer/activity',data);
//活动详情
export const tabActivityDetailApi = (data) => request.post('volunteer/activity_detail',data);

//工单详情
export const server_detailApi = (data) => request.post('volunteer/server_detail',data);
//我的工单
export const my_workorderApi = (data) => request.post('volunteer/my_workorder',data);

//一键抢单
export const volunteer_grabOrderApi = (data) => request.post('volunteer/volunteer_grab_order',data);
//开始工单服务
export const volunteer_startServerApi = (data) => request.post('volunteer/volunteer_startServer',data);

//服务记录
export const volunteer_serviceRecordApi = (data) => request.post('volunteer/volunteer_serviceRecord',data);
//超市
export const volunteer_pointsSupermarketApi = (data) => request.post('volunteer/volunteer_pointsSupermarket',data);
export const volunteer_get_user_infoApi = (data) => request.post('volunteer/volunteer_get_user_info',data);
export const volunteer_submit_userinfoApi = (data) => request.post('volunteer/volunteer_submit_userinfo',data);


//订单
export const volunteer_orderListApi = (data) => request.post('volunteer/volunteer_orderList',data);
//取消工单服务
export const volunteer_cancelServerApi = (data) => request.post('volunteer/volunteer_cancelServer',data);
//积分记录
export const volunteer_points_recordApi = (data) => request.post('volunteer/volunteer_points_record',data);
